package org.vaadin.example.nf4v.demo;

import org.vaadin.nf4v.core.NavigableApplication;
import org.vaadin.nf4v.core.config.NavigationConfig;

/**
 * Demo application for Vaadin Navigation Framework
 */
public class DemoApplication extends NavigableApplication {

    @Override
    protected void onApplicationStart() {
    }

    @Override
    public NavigationConfig getNavigationConfig() {
        // the simplest way to share configuration between applications is to use singleton pattern
        return DemoNavigationConfig.getInstance().getNavigationConfig();
    }
    
    public static DemoApplication getCurrent() {
        return NavigableApplication.getCurrent();
    }
}
